package org.dtrd.modules.food.entity.po;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class DtrdExtEmsYwCookbookCategoryExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public DtrdExtEmsYwCookbookCategoryExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andDataIdIsNull() {
            addCriterion("data_id is null");
            return (Criteria) this;
        }

        public Criteria andDataIdIsNotNull() {
            addCriterion("data_id is not null");
            return (Criteria) this;
        }

        public Criteria andDataIdEqualTo(Integer value) {
            addCriterion("data_id =", value, "dataId");
            return (Criteria) this;
        }

        public Criteria andDataIdNotEqualTo(Integer value) {
            addCriterion("data_id <>", value, "dataId");
            return (Criteria) this;
        }

        public Criteria andDataIdGreaterThan(Integer value) {
            addCriterion("data_id >", value, "dataId");
            return (Criteria) this;
        }

        public Criteria andDataIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("data_id >=", value, "dataId");
            return (Criteria) this;
        }

        public Criteria andDataIdLessThan(Integer value) {
            addCriterion("data_id <", value, "dataId");
            return (Criteria) this;
        }

        public Criteria andDataIdLessThanOrEqualTo(Integer value) {
            addCriterion("data_id <=", value, "dataId");
            return (Criteria) this;
        }

        public Criteria andDataIdIn(List<Integer> values) {
            addCriterion("data_id in", values, "dataId");
            return (Criteria) this;
        }

        public Criteria andDataIdNotIn(List<Integer> values) {
            addCriterion("data_id not in", values, "dataId");
            return (Criteria) this;
        }

        public Criteria andDataIdBetween(Integer value1, Integer value2) {
            addCriterion("data_id between", value1, value2, "dataId");
            return (Criteria) this;
        }

        public Criteria andDataIdNotBetween(Integer value1, Integer value2) {
            addCriterion("data_id not between", value1, value2, "dataId");
            return (Criteria) this;
        }

        public Criteria andIsDelIsNull() {
            addCriterion("is_del is null");
            return (Criteria) this;
        }

        public Criteria andIsDelIsNotNull() {
            addCriterion("is_del is not null");
            return (Criteria) this;
        }

        public Criteria andIsDelEqualTo(Integer value) {
            addCriterion("is_del =", value, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelNotEqualTo(Integer value) {
            addCriterion("is_del <>", value, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelGreaterThan(Integer value) {
            addCriterion("is_del >", value, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelGreaterThanOrEqualTo(Integer value) {
            addCriterion("is_del >=", value, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelLessThan(Integer value) {
            addCriterion("is_del <", value, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelLessThanOrEqualTo(Integer value) {
            addCriterion("is_del <=", value, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelIn(List<Integer> values) {
            addCriterion("is_del in", values, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelNotIn(List<Integer> values) {
            addCriterion("is_del not in", values, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelBetween(Integer value1, Integer value2) {
            addCriterion("is_del between", value1, value2, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelNotBetween(Integer value1, Integer value2) {
            addCriterion("is_del not between", value1, value2, "isDel");
            return (Criteria) this;
        }

        public Criteria andCategoryNameIsNull() {
            addCriterion("category_name is null");
            return (Criteria) this;
        }

        public Criteria andCategoryNameIsNotNull() {
            addCriterion("category_name is not null");
            return (Criteria) this;
        }

        public Criteria andCategoryNameEqualTo(String value) {
            addCriterion("category_name =", value, "categoryName");
            return (Criteria) this;
        }

        public Criteria andCategoryNameNotEqualTo(String value) {
            addCriterion("category_name <>", value, "categoryName");
            return (Criteria) this;
        }

        public Criteria andCategoryNameGreaterThan(String value) {
            addCriterion("category_name >", value, "categoryName");
            return (Criteria) this;
        }

        public Criteria andCategoryNameGreaterThanOrEqualTo(String value) {
            addCriterion("category_name >=", value, "categoryName");
            return (Criteria) this;
        }

        public Criteria andCategoryNameLessThan(String value) {
            addCriterion("category_name <", value, "categoryName");
            return (Criteria) this;
        }

        public Criteria andCategoryNameLessThanOrEqualTo(String value) {
            addCriterion("category_name <=", value, "categoryName");
            return (Criteria) this;
        }

        public Criteria andCategoryNameLike(String value) {
            addCriterion("category_name like", value, "categoryName");
            return (Criteria) this;
        }

        public Criteria andCategoryNameNotLike(String value) {
            addCriterion("category_name not like", value, "categoryName");
            return (Criteria) this;
        }

        public Criteria andCategoryNameIn(List<String> values) {
            addCriterion("category_name in", values, "categoryName");
            return (Criteria) this;
        }

        public Criteria andCategoryNameNotIn(List<String> values) {
            addCriterion("category_name not in", values, "categoryName");
            return (Criteria) this;
        }

        public Criteria andCategoryNameBetween(String value1, String value2) {
            addCriterion("category_name between", value1, value2, "categoryName");
            return (Criteria) this;
        }

        public Criteria andCategoryNameNotBetween(String value1, String value2) {
            addCriterion("category_name not between", value1, value2, "categoryName");
            return (Criteria) this;
        }

        public Criteria andCategoryCreateTimeIsNull() {
            addCriterion("category_create_time is null");
            return (Criteria) this;
        }

        public Criteria andCategoryCreateTimeIsNotNull() {
            addCriterion("category_create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCategoryCreateTimeEqualTo(Date value) {
            addCriterion("category_create_time =", value, "categoryCreateTime");
            return (Criteria) this;
        }

        public Criteria andCategoryCreateTimeNotEqualTo(Date value) {
            addCriterion("category_create_time <>", value, "categoryCreateTime");
            return (Criteria) this;
        }

        public Criteria andCategoryCreateTimeGreaterThan(Date value) {
            addCriterion("category_create_time >", value, "categoryCreateTime");
            return (Criteria) this;
        }

        public Criteria andCategoryCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("category_create_time >=", value, "categoryCreateTime");
            return (Criteria) this;
        }

        public Criteria andCategoryCreateTimeLessThan(Date value) {
            addCriterion("category_create_time <", value, "categoryCreateTime");
            return (Criteria) this;
        }

        public Criteria andCategoryCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("category_create_time <=", value, "categoryCreateTime");
            return (Criteria) this;
        }

        public Criteria andCategoryCreateTimeIn(List<Date> values) {
            addCriterion("category_create_time in", values, "categoryCreateTime");
            return (Criteria) this;
        }

        public Criteria andCategoryCreateTimeNotIn(List<Date> values) {
            addCriterion("category_create_time not in", values, "categoryCreateTime");
            return (Criteria) this;
        }

        public Criteria andCategoryCreateTimeBetween(Date value1, Date value2) {
            addCriterion("category_create_time between", value1, value2, "categoryCreateTime");
            return (Criteria) this;
        }

        public Criteria andCategoryCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("category_create_time not between", value1, value2, "categoryCreateTime");
            return (Criteria) this;
        }

        public Criteria andCategoryThumbIsNull() {
            addCriterion("category_thumb is null");
            return (Criteria) this;
        }

        public Criteria andCategoryThumbIsNotNull() {
            addCriterion("category_thumb is not null");
            return (Criteria) this;
        }

        public Criteria andCategoryThumbEqualTo(String value) {
            addCriterion("category_thumb =", value, "categoryThumb");
            return (Criteria) this;
        }

        public Criteria andCategoryThumbNotEqualTo(String value) {
            addCriterion("category_thumb <>", value, "categoryThumb");
            return (Criteria) this;
        }

        public Criteria andCategoryThumbGreaterThan(String value) {
            addCriterion("category_thumb >", value, "categoryThumb");
            return (Criteria) this;
        }

        public Criteria andCategoryThumbGreaterThanOrEqualTo(String value) {
            addCriterion("category_thumb >=", value, "categoryThumb");
            return (Criteria) this;
        }

        public Criteria andCategoryThumbLessThan(String value) {
            addCriterion("category_thumb <", value, "categoryThumb");
            return (Criteria) this;
        }

        public Criteria andCategoryThumbLessThanOrEqualTo(String value) {
            addCriterion("category_thumb <=", value, "categoryThumb");
            return (Criteria) this;
        }

        public Criteria andCategoryThumbLike(String value) {
            addCriterion("category_thumb like", value, "categoryThumb");
            return (Criteria) this;
        }

        public Criteria andCategoryThumbNotLike(String value) {
            addCriterion("category_thumb not like", value, "categoryThumb");
            return (Criteria) this;
        }

        public Criteria andCategoryThumbIn(List<String> values) {
            addCriterion("category_thumb in", values, "categoryThumb");
            return (Criteria) this;
        }

        public Criteria andCategoryThumbNotIn(List<String> values) {
            addCriterion("category_thumb not in", values, "categoryThumb");
            return (Criteria) this;
        }

        public Criteria andCategoryThumbBetween(String value1, String value2) {
            addCriterion("category_thumb between", value1, value2, "categoryThumb");
            return (Criteria) this;
        }

        public Criteria andCategoryThumbNotBetween(String value1, String value2) {
            addCriterion("category_thumb not between", value1, value2, "categoryThumb");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}